<?php
defined('IN_ADMIN') or exit('No permission resources.'); 
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form name="myform" action="?m=categories&c=categories_admin&a=store_delete" method="post">
    <table width="100%" cellspacing="0" class="table-list nHover">
        <thead>
            <tr>
            <th width="40"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
			<th width="40" align="center">ID</th>
			<th width="160" align="center">名称</th>
			<th width="160" align="center">联系电话</th>
			<th width="160" align="center">地址</th>
			<th width="20" align="center">操作</th>
            </tr>
        </thead>
        <tbody>
 <?php 
if(is_array($list)){
	foreach($list as $k => $info){
?>   
	<tr>
	<td align="center" width="40"><input class="inputcheckbox" name="id[]" value="<?php echo $info['sid'];?>" type="checkbox"></td>
	<td width="40" align="center"><?php echo $info['sid']?></td>
	<td width="160" align="center"><?php echo $info['name']?></td>
	<td width="160" align="center"><?php echo $info['phone']?></td>
	<td width="160" align="center"><?php echo $info['address']?></td>
	<th width="20" align="center"><a href="?m=content&c=content&a=store_edit&sid=<?php echo $info['sid'];?>&catid=<?php echo $catid?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>">修改</a></th>
	</tr>
<?php 
	}
}
?>
</tbody>
    </table>
  
    <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label>
        <input type="submit" class="button" value="<?php echo L('delete')?>" onclick="if(confirm('<?php echo L('confirm', array('message' => L('selected')))?>')){document.myform.action='?m=content&c=content&a=store_delete&pc_hash=<?php echo $_SESSION['pc_hash'];?>';}else{return false;}"/>
 <div id="pages"><?php echo $this->db->pages;?></div><script>window.top.$("#display_center_id").css("display","none");</script>
</form>
</div>
</body>
</html>